﻿<%@ Page Title="闫启洪新闻发布系统 --- 新闻详情" Language="C#" MasterPageFile="~/MasterPage.master" AutoEventWireup="true" CodeFile="shownews.aspx.cs" Inherits="shownews" %>

<%@ Register src="UControl/UCleft.ascx" tagname="UCleft" tagprefix="uc1" %>
<%@ Register src="UControl/leftmenu.ascx" tagname="leftmenu" tagprefix="uc2" %>
<asp:Content ID="Content1" ContentPlaceHolderID="ContentPlaceHolder1" Runat="Server">
    <br />
    <table width="991" border="0" align="center" cellpadding="0" cellspacing="0">
  <tr>
    <td width="200" valign="top"><table width="200" border="0" cellspacing="0" cellpadding="0">
      <tr>
        <td>
        <uc2:leftmenu ID="leftmenu1" runat="server" />
        </td>
      </tr>
      <tr>
        <td>
            <uc1:UCleft ID="UCleft1" runat="server" Bt="热门新闻" />
        <br />
          </td>
      </tr>
    </table></td>
    <td valign="top">
    <table width="775px" border="0" cellspacing="0" cellpadding="0" align="right">
    <tr>
    <td>
        <asp:Repeater ID="rptnews" runat="server">
        <ItemTemplate>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td  align="center"><br /><%#Eval("nsubject")%><br /><br /></td>
  </tr>
  <tr>
    <td  align="center" bgcolor="#CCCCCC">发布时间：<%#Eval("ndate")%>&nbsp;&nbsp;&nbsp;&nbsp;发布者：<%#Eval("naddname")%><br /></td>
  </tr>
  <tr>
    <td><%#Eval("ncontent")%><br /><br /><br /></td>
  </tr>
</table>
</ItemTemplate>
        </asp:Repeater>
    </td>
    </tr>
    <tr>
    <td>
        <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>最新评论</td>
  </tr>
  <tr>
    <td height="3" bgcolor="#85B326"></td>
  </tr>
  <tr>
    <td>
    <asp:Repeater ID="rptcomment" runat="server">
        <ItemTemplate>
    <table width="100%" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td width="200"><table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td rowspan="2"><asp:Image ID="imghead" runat="server" ImageUrl='<%#Eval("uheadurl") %>' /></td>
    <td>会员名：<%#Eval("cname")%></td>
    </tr>
  <tr>
    <td>IP：<%#Eval("cip")%></td>
    </tr>
</table></td>
        <td><%#Eval("ccontent")%>(<%#Eval("cdate")%>)</td>
      </tr>
    </table>  
    <br />
    </ItemTemplate>
        </asp:Repeater> 
    <br />
    <br />
    <br />
    <br /> 
    </td>
  </tr>
</table>
    </td>
    </tr>
    <tr>
    <td>
    <table width="100%" border="0" cellspacing="0" cellpadding="0">
  <tr>
    <td>发表评论</td>
  </tr>
  <tr>
    <td height="3" bgcolor="#85B326"></td>
  </tr>
  <tr>
    <td><table width="100%" border="1" cellspacing="0" cellpadding="0">
      <tr>
        <td width="200">评论内容：</td>
        <td>
            <asp:TextBox ID="txtcontent" runat="server" Height="141px" TextMode="MultiLine" 
                Width="500px"></asp:TextBox>
          </td>
      </tr>
      <tr>
        <td width="200">&nbsp;</td>
        <td>
            <asp:TextBox ID="txtyzm" runat="server" Width="75px"></asp:TextBox><asp:Image ID="Image1" runat="server" ImageUrl="YqhCheckCode.aspx" />
            <asp:Button ID="btnup" runat="server" Text="提交" onclick="btnup_Click" />
          </td>
      </tr>
    </table></td>
  </tr>
</table>

    </td>
    </tr>
    </table>
    </td>
  </tr>
</table>
</asp:Content>

